You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecIntHelper Class > TMtxVecIntHelper Methods > FindIndexes Method > TMtxVecIntHelper.FindIndexes Method (this TMtxVecInt, [In] TMtxVec, [In] string, [In] TCplx)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecIntHelper.FindIndexes Method (this TMtxVecInt, [In] TMtxVec, [In] string, [In] TCplx)

Fills the calling vector with indexes, where the logical expression is true.

Syntax
C#
Visual Basic
public static TMtxVecInt FindIndexes(this TMtxVecInt aThis, [In] TMtxVec a, [In] string op, [In] TCplx b);

Fills the calling vector with indexes, where the Op comparison between a and b is True. Op string parameter can be '<', '>', '>=','<=','=' or '<>'. The calling vector will be sized to match a.Length. On return it will be subranged to reflect actual number of matching elements. The method will not raise an exception, if the calling vector (Self) is already subranged. Check the TVec.SetSubRange routine to learn more about subranges.

Ensure that the power function will return 0, if the exponent is 0.

CreateIt(a,b); With TVec(Self) do try Ln(Base); //First do it the normal way then fix the anomalies Mul(Exponent); Exp; a.FindIndexes(Exponent,'=',0); b.Size(a.Length,Complex); b.Setval(1); Scatter(b,a); finally FreeIt(a,b); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!